#!/bin/bash

# 1. 通过命令行参数接收多个文件
# 2. 输出格式：
#     total lines of "file1": 123
#     total lines of "file2": 345
#     total lines of "fileN": 789

# for file in "$@"
for file
do
    lines=$(wc -l <"$file")
    echo "total lines of \"$file\": $lines"
done
